#ifndef   _DMA_H_
#define   _DMA_H_
#include "stm32f10x.h"                  // Device header


extern u8 sta0,sta1;

void MY_DMA_CONFIG(DMA_Channel_TypeDef * DMAx,u32 PeripheralBaseAddr,u32 MemoryBaseAddr) ;

void MY_DMA_START(DMA_Channel_TypeDef * DMAx,u16 lenght) ;


void MY_DMA_NVIC_CONFIG(uint8_t NVIC_IRQChannel) ;







#endif
